package com.engine.kq.service.impl;

import com.engine.core.impl.Service;
import com.engine.kq.cmd.dutyrules.*;
import com.engine.kq.service.KQDutyRulesService;
import weaver.hrm.User;

import java.util.Map;

/**
 * 加班规则
 */
public class KQDutyRulesServiceImpl extends Service implements KQDutyRulesService {



    @Override
    public Map<String, Object> getDutyRulesForm(Map<String, Object> params, User user) {
        return commandExecutor.execute(new GetDutyRulesFormCmd(params, user));
    }

    @Override
    public Map<String, Object> getSearchList(Map<String, Object> params, User user) {
        return commandExecutor.execute(new GetSearchListCmd(params, user));
    }

    @Override
    public Map<String, Object> addDutyRules(Map<String, Object> params, User user) {
        return commandExecutor.execute(new AddDutyRulesCmd(params, user));
    }

    @Override
    public Map<String, Object> editDutyRules(Map<String, Object> params, User user) {
        return commandExecutor.execute(new EditDutyRulesCmd(params, user));
    }

    @Override
    public Map<String, Object> deleteDutyRules(Map<String, Object> params, User user) {
        return commandExecutor.execute(new DeleteDutyRulesCmd(params, user));
    }


    @Override
    public Map<String, Object> isRepeatSetting(Map<String, Object> params, User user) {
        return commandExecutor.execute(new IsRepeatSettingCmd(params, user));
    }

    @Override
    public Map<String, Object> getDutyUnitForm(Map<String, Object> params, User user) {
        return commandExecutor.execute(new GetDutyUnitFormCmd(params, user));
    }

    @Override
    public Map<String, Object> saveDutyUnit(Map<String, Object> params, User user) {
        return commandExecutor.execute(new SaveDutyUnitCmd(params, user));
    }
}
